package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Employee;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author fanYuLe
 * @Date 2023/3/1 11:36
 * @Blog blog.fanYuLe.net/996.mba
 * @Description:
 */
@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {
    //员工登录
    Employee findByUsername(String username);
    //员工列表
    List<Employee> find(String name);

    //新增
    void save(Employee employee);
    //回显
    Employee findById(Long id);
    //修改
    void update(Employee employee);
}
